/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.wors.android.custom.rideshare2;

/**
 *
 * @author 231260
 */
public class BooleanMesssage {
	
	private boolean status;
	private String msg;

	public BooleanMesssage(boolean status, String msg) {
		this.status = status;
		this.msg = msg;
	}

	public String getMsg() {
		return msg;
	}

	public boolean isOK() {
		return status;
	}

	private void setStatus(boolean status) {
		this.status = status;
	}
	
	public void setTrue()
	{
		setStatus(true);
	}
	
	public void setFalse()
	{
		setStatus(false);
	}
	
	public void addMsg(String msg)
	{
		this.msg += "".equals(this.msg) ? msg : "\n"+msg;
	}
}
